package com.sgb.link.entity.merchant;

import com.contrarywind.interfaces.IPickerViewData;
import com.google.gson.annotations.SerializedName;

public class IndustryCategoryEntity<T> implements IPickerViewData {

    /**
     * id : 261
     * no : 1420316663148187648
     * categroyName : 测试数据ZL
     * categoryImage : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/member_center/610000/20210720917340618206504.png
     * categoryParentNo : 0
     * categorySort : 1
     * categoryLevels : 0
     * categoryStatus : 1
     * createTime : 1627464855359
     * subChildren : [{"id":262,"no":1420710623880417280,"categroyName":"踩踩踩踩踩踩踩踩","categoryImage":"","categoryParentNo":1420316663148187648,"categorySort":3,"categoryLevels":1,"categoryStatus":"1","createTime":1627558782917,"subChildren":null}]
     */

    private int id;
    @SerializedName(value = "categoryName", alternate = {"value","typeName","levelName","clusterName"})
    private String categoryName;

    private String categoryParentNo;
    private int categorySort;
    private int categoryLevels;
    private String categoryStatus;
    private long createTime;
    /**
     * id : 262
     * no : 1420710623880417280
     * categroyName : 踩踩踩踩踩踩踩踩
     * categoryImage :
     * categoryParentNo : 1420316663148187648
     * categorySort : 3
     * categoryLevels : 1
     * categoryStatus : 1
     * createTime : 1627558782917
     * subChildren : null
     */
    @SerializedName(value = "subCategoryVos")
    public T subCategoryVos;
    /**
     * categoryNo : 1441973059434319872
     * categoryImages : https://shigongbang.oss-cn-hangzhou.aliyuncs.com/member_center/610000/20210926911485573155699.jpg
     */
    @SerializedName(value = "categoryNo", alternate = {"no"})
    private String categoryNo;
    private String categoryImages;

    public IndustryCategoryEntity(){

    }
    public IndustryCategoryEntity(String categoryName, String categoryNo) {
        this.categoryName = categoryName;
        this.categoryNo = categoryNo;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }


    public String getCategoryName() {
        return categoryName;
    }

    public void setCategoryName(String categoryName) {
        this.categoryName = categoryName;
    }


    public String getCategoryParentNo() {
        return categoryParentNo;
    }

    public void setCategoryParentNo(String categoryParentNo) {
        this.categoryParentNo = categoryParentNo;
    }

    public int getCategorySort() {
        return categorySort;
    }

    public void setCategorySort(int categorySort) {
        this.categorySort = categorySort;
    }

    public int getCategoryLevels() {
        return categoryLevels;
    }

    public void setCategoryLevels(int categoryLevels) {
        this.categoryLevels = categoryLevels;
    }

    public String getCategoryStatus() {
        return categoryStatus;
    }

    public void setCategoryStatus(String categoryStatus) {
        this.categoryStatus = categoryStatus;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public T getSubChildren() {
        return subCategoryVos;
    }

    public void setSubChildren(T subChildren) {
        this.subCategoryVos = subChildren;
    }

    @Override
    public String getPickerViewText() {
        return categoryName;
    }

    public String getCategoryNo() {
        return categoryNo;
    }

    public void setCategoryNo(String categoryNo) {
        this.categoryNo = categoryNo;
    }

    public String getCategoryImages() {
        return categoryImages;
    }

    public void setCategoryImages(String categoryImages) {
        this.categoryImages = categoryImages;
    }
}
